package com.ruoyi.userr.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员套餐配置对象 vip_plans
 * 
 * @author sr
 * @date 2025-08-17
 */
public class VipPlans extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 套餐ID */
    private Integer id;

    /** 套餐名称（如“连续包月”） */
    @Excel(name = "套餐名称", readConverterExp = "如=“连续包月”")
    private String name;

    /** 时长（天，如30天） */
    @Excel(name = "时长", readConverterExp = "天=，如30天")
    private Long duration;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal price;

    /** 折扣价 */
    @Excel(name = "折扣价")
    private BigDecimal discountPrice;

    /** 是否自动续费（1-是，0-否） */
    @Excel(name = "是否自动续费", readConverterExp = "1=-是，0-否")
    private Integer isAutoRenew;

    /** 套餐描述 */
    @Excel(name = "套餐描述")
    private String description;

    /** 状态（0-启用，1-下架） */
    @Excel(name = "状态", readConverterExp = "0=-启用，1-下架")
    private Integer status;

    /** 是否删除：0正常 1删除 */
    private Integer del;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setDiscountPrice(BigDecimal discountPrice) 
    {
        this.discountPrice = discountPrice;
    }

    public BigDecimal getDiscountPrice() 
    {
        return discountPrice;
    }

    public void setIsAutoRenew(Integer isAutoRenew) 
    {
        this.isAutoRenew = isAutoRenew;
    }

    public Integer getIsAutoRenew() 
    {
        return isAutoRenew;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("duration", getDuration())
            .append("price", getPrice())
            .append("discountPrice", getDiscountPrice())
            .append("isAutoRenew", getIsAutoRenew())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("del", getDel())
            .toString();
    }
}
